package main

import (
	"fmt"
	"time"
)

var counter int

func increment() {
	counter++
}

func main() {
	for i := 0; i < 100; i++ {
		go increment()
	}

	time.Sleep(1 * time.Second) // Naive attempt to wait for goroutines to finish
	fmt.Println("Final counter value:", counter)
}
